@extends('_layout.home') @section('main')
<div class="col-md-6 col-md-offset-3">
<h1>User Registration</h1>
<hr>
<div class="row">
{{ Form::open(array('route' => 'user.register.post', 'method' => 'post')) }}

	<div class="form-group @if ($errors->has('name')) has-error @endif">
		{{ Form::label('name', 'Name:') }}
		{{ Form::text('name', '', array('class' => 'form-control', 'placeholder'=>'Full name')) }}
		@if ($errors->has('name')) <p class="help-block">{{ $errors->first('name') }}</p> @endif
	</div>

	<div class="form-group @if ($errors->has('user_id')) has-error @endif">
		{{ Form::label('user_id', 'User Id:') }}
		{{Form::text('user_id', '', array('class' => 'form-control')) }}
		@if ($errors->has('user_id')) <p class="help-block">{{ $errors->first('user_id') }}</p> @endif
	</div>

	<div class="form-group @if ($errors->has('password')) has-error @endif">
		{{ Form::label('password', 'Password:') }}
		{{Form::password('password', array('class' => 'form-control')) }}
		@if ($errors->has('password')) <p class="help-block">{{ $errors->first('password') }}</p> @endif
	</div>

	<div class="form-group @if ($errors->has('password_confirmation')) has-error @endif">
		{{ Form::label('password', 'Confirm Password:') }}
		{{Form::password('password_confirmation', array('class' => 'form-control')) }}
		@if ($errors->has('password_confirmation')) <p class="help-block">{{ $errors->first('password_confirmation') }}</p> @endif
	</div>

	<div class="form-group @if ($errors->has('email')) has-error @endif">
		{{ Form::label('email', 'Email:') }}
		{{ Form::text('email', '', array('class' => 'form-control')) }}
		@if ($errors->has('email')) <p class="help-block">{{ $errors->first('email') }}</p> @endif
	</div>

	<div class="form-group">
		{{ Form::submit('Submit', array('class' => 'btn btn-primary')) }}
	</div>

{{ Form::close() }}
</div>
</div>
@stop
